{% extends "tj3/tj3.html" %}


{% block content  %}  

<h2>Project "{{project.name}}"</h2>
{% load mptt_tags %} 
<ul class="root">
    {% recursetree tasks %}
        <li>
        	<!--- dump node information --->
            <a href={% url task_detail node.id %}>{{ node.name }}</a>({{node.id}})
            
            <!--- drill down to the next level --->
            {% if not node.is_leaf_node %}
                <ul class="children">
                    {{ children }}
                </ul>
            {% endif %}
        </li>
    {% endrecursetree %}
</ul>
<h2>Move Task "{{target.name}}"</h2>
<form action="." method="post" enctype="multipart/form-data">
{{ move_form }}
<input type="submit" name="command" value="Update" class="button" />   
</form>
{% endblock content %}
